﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace web
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        /// [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            login show_login = new login(false);
            MYLOGIN:
           // Program.pass=show_login.get_pass();
            Application.Run(show_login);
            if (show_login.get_pass().Equals("xtmm"))
            {
                string user = show_login.get_user();
                string userid = show_login.get_user_id();
                show_login.Close();
                Form1 my_form = new Form1(user, userid);
                Application.Run(my_form);
                if(my_form.DialogResult==DialogResult.OK)
                {
                    show_login = new login(true);
                    goto MYLOGIN;
                }
            }
        }
    }
}